package com.odata.springboot.starter.odata.annotation;


import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * odata 实体字段注解
 *
 * @author chenYX
 * @date 2021/6/28 15:45
 * @description
 */
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface ODataBaseField {
    /**
     * 字段名称数据库
     */
     @AliasFor("fieldName")
     String value();
    /**
     * 是否是主键
     */
     boolean primaryKeyFlag() default false;
}
